home *** CD-ROM | disk | FTP | other *** search
/ Champak 146 / (Vol 146) Jan 07 2012.iso / Games / sheep_escape.swf / scripts / DefineSprite_36 / frame_25 / DoAction.as
Encoding:
Text File  |  2012-01-07  |  1.7 KB  |  84 lines

  1. _root.level += 1;
  2. _root.prelevel += 1;
  3. if(_root.score == "0")
  4. {
  5.    _root.reaction1a = _root.display.Seconds;
  6.    _root.reaction1b = _root.display.Centiseconds;
  7.    if(_root.reaction1a >= "01")
  8.    {
  9.       _root.reaction1a = "1";
  10.    }
  11.    else
  12.    {
  13.       _root.reaction1a = "0";
  14.    }
  15.    _root.scoreboard.reaction1 = "3.0";
  16. }
  17. else if(_root.score == "1")
  18. {
  19.    _root.reaction2a = _root.display.Seconds;
  20.    _root.reaction2b = _root.display.Centiseconds;
  21.    if(_root.reaction2a >= "01")
  22.    {
  23.       _root.reaction2a = "1";
  24.    }
  25.    else
  26.    {
  27.       _root.reaction2a = "0";
  28.    }
  29.    _root.scoreboard.reaction2 = "3.0";
  30. }
  31. else if(_root.score == "2")
  32. {
  33.    _root.reaction3a = _root.display.Seconds;
  34.    _root.reaction3b = _root.display.Centiseconds;
  35.    if(_root.reaction3a >= "01")
  36.    {
  37.       _root.reaction3a = "1";
  38.    }
  39.    else
  40.    {
  41.       _root.reaction3a = "0";
  42.    }
  43.    _root.scoreboard.reaction3 = "3.0";
  44. }
  45. else if(_root.score == "3")
  46. {
  47.    _root.reaction4a = _root.display.Seconds;
  48.    _root.reaction4b = _root.display.Centiseconds;
  49.    if(_root.reaction4a >= "01")
  50.    {
  51.       _root.reaction4a = "1";
  52.    }
  53.    else
  54.    {
  55.       _root.reaction4a = "0";
  56.    }
  57.    _root.scoreboard.reaction4 = "3.0";
  58. }
  59. else if(_root.score == "4")
  60. {
  61.    _root.reaction5a = _root.display.Seconds;
  62.    _root.reaction5b = _root.display.Centiseconds;
  63.    if(_root.reaction5a >= "01")
  64.    {
  65.       _root.reaction5a = "1";
  66.    }
  67.    else
  68.    {
  69.       _root.reaction5a = "0";
  70.    }
  71.    _root.scoreboard.reaction5 = "3.0";
  72. }
  73. _root.engine.play(1);
  74. _root.score += 1;
  75. if(_root.score >= "5")
  76. {
  77.    _root.gotoAndPlay("endgame");
  78. }
  79. else
  80. {
  81.    _root.green_light = "n";
  82.    _root.engine.play(1);
  83. }
  84.